﻿using UnityEngine;
using System.Collections;
using GameBox.Framework;
using GameBox.Service.GiantLightServer;
using System;
using GameBox.Service.ByteStorage;
using rpc;
using WOA.Model;
using Rpc;

public class connection : MonoBehaviour{

    // Use this for initialization
    void Start () {

        var login = new LoginRequest();
        login.account = User.Account;
        login.password = "1";

        //登录请求
        Controller.SendRequest("rpc.Login", "Login", ByteConverter.ProtoBufToBytes(login));

        //匹配请求
        Controller.SendRequest("tanks.Tanks", "EnterMatch",
               ByteConverter.ProtoBufToBytes<EmptyMsg>(new EmptyMsg()));

    }
	
	// Update is called once per frame
	void Update () {
	
	}
    
}
